<template>
	<text class="iconfont" :class="`${icon} ${className}`"></text>
</template>

<script>
export default { name: "EIconfont" }
</script>

<script setup>
import {} from "vue"

defineProps({
	// icon 图标
	icon: {
		type: String,
		required: true,
	},
	// 图标类名
	className: {
		type: String,
		default: "",
	},
})

</script>

<style scoped lang="scss">
.iconfont{
	font-size: 40rpx;
	vertical-align: -0.15em;
	fill: currentColor;
}
</style>
